package edu.cs335pl.questionnaire.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itextpdf.text.DocumentException;
import edu.cs335pl.questionnaire.pojo.ServerResponse;
import edu.cs335pl.questionnaire.pojo.entity.*;

import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.List;

public interface UserService extends IService<User> {
    ServerResponse login(Login login, HttpServletResponse response);

    File generateFile(User user) throws FileNotFoundException, DocumentException;

    int submit(Questionnaire questionnaire);

    User find(String account);

    int editPassword(Login login);



    int updateInfo(CorporateInformation corporateInformation);

    int updateInfo2(CorporateInformation2 corporateInformation);

    int saveUser(Login login);

    List<QuestionnaireResults> getReport(String account);
}
